#if !defined(AFX_CH1_1VIEW_H__60AAD957_ED0B_48FF_834E_78C547411B15__INCLUDED_)
#define AFX_CH1_1VIEW_H__60AAD957_ED0B_48FF_834E_78C547411B15__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif  // _MSC_VER > 1000

class CDipXuzzView : public CScrollView {
   protected:  // create from serialization only
    CDipXuzzView();
    DECLARE_DYNCREATE(CDipXuzzView)

    // Attributes
   public:
    CDipXuzzDoc* GetDocument();

    // Operations
   public:
    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CDipXuzzView)
   public:
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
    virtual void OnInitialUpdate();
    virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);

   protected:
    virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
    //}}AFX_VIRTUAL

    // Implementation
   public:
    bool switch_show;
    float BHeight, BLength;  //��ߡ��۳�

    virtual ~CDipXuzzView();
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif

   protected:
    // Generated message map functions
   protected:
    //{{AFX_MSG(CDipXuzzView)
    afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);  // user message
    afx_msg void OnGeomTran();
    afx_msg void OnGeomRota();
    afx_msg void OnGeomZoom();
    afx_msg void OnPointInvert();
    afx_msg void OnPointEqua();
    afx_msg void OnColorToGray();
    afx_msg void OnEdgeGauss();
    afx_msg void OnEdgePrewitt();
    afx_msg void OnEdgeRobert();
    afx_msg void OnEdgeSobel();
    afx_msg void OnDetectThreshold();
    afx_msg void OnEdgeContour();
    afx_msg void OnMeasureHL();
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
   public:
    afx_msg void OnFilter();
    int Otsu(unsigned char* lpDIBBits, long lWidth, long lHeight, LONG lLineBytes);
    afx_msg void OnDemo();
    afx_msg void OnDemocolor();
    afx_msg void OnReadMark();
    afx_msg void OnWatermarkCombine();
    afx_msg void OnSecondmenu();
    afx_msg void OnGraytrans();
    afx_msg void OnColorchange();
    afx_msg void OnAddnoise();
    afx_msg void OnWatermark1();
    afx_msg void OnWatermark2();
    afx_msg void OnHide();
    afx_msg void OnFind();
    //	afx_msg void OnOleEditConvert();
    afx_msg void OnDemo_1();
    afx_msg void OnFruitlocation();
    afx_msg void OnLanedetection();
    afx_msg void OnMosaic();
    //	afx_msg void OnMenuRButtonUp(UINT nPos, CMenu* pMenu);
    //	afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
    //	afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnThinbody();
};

#ifndef _DEBUG
inline CDipXuzzDoc* CDipXuzzView::GetDocument() {
    return (CDipXuzzDoc*)m_pDocument;
}
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif  // !defined(AFX_CH1_1VIEW_H__60AAD957_ED0B_48FF_834E_78C547411B15__INCLUDED_)
